#include "namepipe.hpp"

int main()
{
    namepipe npipe(PATH,Creator);

    npipe.OpenForWrite();
    while(true)
    {
        std::string meassage;
        getline(std::cin, meassage);
        int n = npipe.SendMeassage(meassage);
        if(n <= 0)
        {
            std::cout << "Send Meassage unsucess" << std::endl;
            break;
        }
    }

    return 0;
}